const INTROSPECT_SCHEMA = 'org.gnome.shell';
const INTROSPECT_KEY = 'introspect';
-const APP_WHITELIST = ['org.freedesktop.impl.portal.desktop.gtk'];
+const APP_ALLOWLIST = ['org.freedesktop.impl.portal.desktop.gtk'];
const INTROSPECT_DBUS_API_VERSION = 3;
this._syncRunningApplications();
- this._whitelistMap = new Map();
- APP_WHITELIST.forEach(appName => {
+ this._allowlistMap = new Map();
+ APP_ALLOWLIST.forEach(appName => {
Gio.DBus.watch_name(Gio.BusType.SESSION,
appName,
Gio.BusNameWatcherFlags.NONE,
- (conn, name, owner) => this._whitelistMap.set(name, owner),
- (conn, name) => this._whitelistMap.delete(name));
+ (conn, name, owner) => this._allowlistMap.set(name, owner),
+ (conn, name) => this._allowlistMap.delete(name));
});
this._settings = St.Settings.get();
return this._introspectSettings.get_boolean(INTROSPECT_KEY);
}
- _isSenderWhitelisted(sender) {
- return [...this._whitelistMap.values()].includes(sender);
+ _isSenderAllowed(sender) {
+ return [...this._allowlistMap.values()].includes(sender);
}
_getSandboxedAppId(app) {
if (this._isIntrospectEnabled())
return true;
- if (this._isSenderWhitelisted(invocation.get_sender()))
+ if (this._isSenderAllowed(invocation.get_sender()))
return true;
return false;
// Calculate whether the given app (a Gio.DesktopAppInfo) should be shown
// on the desktop, in search results, etc. The app should be shown if:
// - The .desktop file doesn’t say it should be hidden.
- // - The executable from the .desktop file’s Exec line isn’t blacklisted in
+ // - The executable from the .desktop file’s Exec line isn’t denied in
// the user’s parental controls.
// - None of the flatpak app IDs from the X-Flatpak and the
- // X-Flatpak-RenamedFrom lines are blacklisted in the user’s parental
+ // X-Flatpak-RenamedFrom lines are denied in the user’s parental
// controls.
shouldShowApp(appInfo) {
// Quick decision?
const WAYLAND_KEYBINDINGS_SCHEMA = 'org.gnome.mutter.wayland.keybindings';
-const APP_WHITELIST = ['gnome-control-center.desktop'];
+const APP_ALLOWLIST = ['gnome-control-center.desktop'];
const APP_PERMISSIONS_TABLE = 'gnome';
const APP_PERMISSIONS_ID = 'shortcuts-inhibitor';
const GRANTED = 'GRANTED';
}
vfunc_show() {
- if (this._app && APP_WHITELIST.includes(this._app.get_id())) {
+ if (this._app && APP_ALLOWLIST.includes(this._app.get_id())) {
this._emitResponse(DialogResponse.ALLOW);
return;
}
}
_modes[modeName] = {};
- let propBlacklist = ['unlockDialog'];
+ const excludedProps = ['unlockDialog'];
for (let prop in _modes[DEFAULT_MODE]) {
if (newMode[prop] !== undefined &&
- !propBlacklist.includes(prop))
+ !excludedProps.includes(prop))
_modes[modeName][prop] = newMode[prop];
}
_modes[modeName]['isPrimary'] = true;